module.exports = function (pathname, req, res) {
  if (pathname === "/user") {
    switch (req.method) {
      case "GET":
        return res.end(JSON.stringify({ user: "admin" }));
      case "POST":
        return res.end(JSON.stringify(req.body));
      case "DELETE":
        return res.end("ok");
    }
  }
};
